package model

import "errors"

var ErrSupplierName = errors.New("Name 为空")

type SupplierRequestParams struct {
}

type SupplierName struct {
	value string
}

func (u *SupplierName) Value() string {
	if u == nil {
		return ""
	}
	return u.value
}

// 参数校验
func NewVerifySupplierName(name string) (*SupplierName, error) {
	//参数校验
	if name == "" {
		return nil, ErrSupplierName
	}

	return &SupplierName{name}, nil
}
